package com.chen.org.mapper;

import com.chen.basic.mapper.BaseMapper;
import com.chen.org.domain.Employee;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface EmployeeMapper extends BaseMapper<Employee> {

    /**
     * 新增角色
     * @param empId
     * @param roleId
     */
    void insertEmpRole(@Param("empId") Long empId,@Param("roleId") Long roleId);

    /**
     * 更新角色
     * @param empId
     * @param roleId
     */
    void updateEmpRole(@Param("empId") Long empId,@Param("roleId") Long roleId);

    Employee getByUsername(String username);
}
